﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Live;

namespace LiveTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("根据直播间Url,获取真实播放地址,播放地址可以用potplayer测试");
            Console.WriteLine();

            PandaTv tv = new PandaTv();
            if (tv.Init("https://www.panda.tv/1509115"))
            {
                Console.WriteLine("熊猫:" + tv.GetLivePlayUrl());
            }

            DouyuTv douyuTv = new DouyuTv();
            if (douyuTv.Init("https://www.douyu.com/829815"))
            {
                Console.WriteLine("斗鱼:" + douyuTv.GetLivePlayUrl());
            }

            QuanMinTv quanMinTv = new QuanMinTv();
            if (quanMinTv.Init("https://www.quanmin.tv/333"))
            {
                Console.WriteLine("全民:" + quanMinTv.GetLivePlayUrl());
            }

            ZhanQiTv zhanQiTv = new ZhanQiTv();
            if (zhanQiTv.Init("https://www.zhanqi.tv/xiong520"))
            {
                Console.WriteLine("战旗:" + zhanQiTv.GetLivePlayUrl());
            }

            LongzhuTv longzhuTv = new LongzhuTv();
            if (longzhuTv.Init("http://star.longzhu.com/197335"))
            {
                Console.WriteLine("龙珠:" + longzhuTv.GetLivePlayUrl());
            }

            Console.ReadLine();
        }
    }
}